﻿
using Coldairarrow.Entity.Base_Company;
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base_Company
{
    public interface IBase_ComapnyBusiness
    {
        Task<PageResult<Base_Comapny>> GetDataListAsync(PageInput<ConditionDTO> input);
       
        List<object> GetCompanyList();
      
        
        CompanyUnitInfo GetTheModel(string id);
        Task<Base_Comapny> GetTheDataAsync(string id);
        Base_Comapny GetTheData(string id);
        Task AddDataAsync(Base_Comapny data);
        Task UpdateDataAsync(Base_Comapny data);
        Task DeleteDataAsync(List<string> ids);
        string GetIPath(string id, string wName);
    }

    public class CompanyUnitInfo
    {

        /// <summary>
        /// Id
        /// </summary>
        public String Id { get; set; }


        /// <summary>
        /// 子站名称
        /// </summary>
        public String Name { get; set; }


        /// <summary>
        /// 编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// Logo图片
        /// </summary>
        public String LogoImgPath { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public String ResUser { get; set; }

        /// <summary>
        /// 负责人电话
        /// </summary>
        public String ResPhone { get; set; }

        /// <summary>
        /// 一键登录状态(T,F)
        /// </summary>
        public Boolean HaveMember { get; set; } = false;

        /// <summary>
        /// 是否包含水印(T,F)
        /// </summary>
        public Boolean HaveWaterMark { get; set; } = false;

        /// <summary>
        /// 登录方式(1.AW,2.AW+PW,3.AW+PW+PE,4.PE)
        /// </summary>
        public int LoginType { get; set; } = 0;

        /// <summary>
        /// 首页模板Id
        /// </summary>
        public String IndexTemplateId { get; set; }

        /// <summary>
        /// 列表页模板Id
        /// </summary>
        public String ListTemplateId { get; set; }

        /// <summary>
        /// 展示列表模板Id
        /// </summary>
        public String ShowListTemplateId { get; set; }

        /// <summary>
        /// 短信账号
        /// </summary>
        public String SmsAccount { get; set; }

        /// <summary>
        /// 短信密码
        /// </summary>
        public String SmsPassword { get; set; }

        /// <summary>
        /// 短信网址
        /// </summary>
        public String SmsWebSite { get; set; }

        /// <summary>
        /// 类型：1.非标，2.标准
        /// </summary>
        public String KeepOne { get; set; } = "1";

        /// <summary>
        /// 头部模板Id
        /// </summary>
        public String KeepTwo { get; set; }

        /// <summary>
        /// 底部模板Id
        /// </summary>
        public String KeepThree { get; set; }

        /// <summary>
        /// 详情模板Id
        /// </summary>
        public String KeepFour { get; set; }


    }

    public class ComapnyInfo
    {

        /// <summary>
        /// Id
        /// </summary>
        public String Id { get; set; }


        /// <summary>
        /// 子站名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 英文名称
        /// </summary>
        public String EName { get; set; }


        /// <summary>
        /// Logo图片
        /// </summary>
        public String LogoImgPath { get; set; }


        /// <summary>
        /// 地址
        /// </summary>
        public String DataPath { get; set; }

        /// <summary>
        /// 文件地址
        /// </summary>
        public String FilePath { get; set; }

        /// <summary>
        /// 版权信息
        /// </summary>
        public String CopyrightInfo { get; set; }

        /// <summary>
        /// 协办单位
        /// </summary>
        public String AssistCompany { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public String Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public String Email { get; set; }

        /// <summary>
        /// 传真
        /// </summary>
        public String Fax { get; set; }

        /// <summary>
        /// 备案号
        /// </summary>
        public String AQNo { get; set; }

        /// <summary>
        /// 备案链接
        /// </summary>
        public String AQURL { get; set; }

        /// <summary>
        /// 技术支持
        /// </summary>
        public String TecSupport { get; set; }

        /// <summary>
        /// 行政许可投诉电话
        /// </summary>
        public String XZXKPhone { get; set; }

        /// <summary>
        /// 网站标识码
        /// </summary>
        public String NetNo { get; set; }

        /// <summary>
        /// 公网安备
        /// </summary>
        public String GWABNo { get; set; }

        /// <summary>
        /// 公网安备链接
        /// </summary>
        public String GWABURL { get; set; }

        /// <summary>
        /// 党政机关图片
        /// </summary>
        public String BottomImgPath { get; set; }

        /// <summary>
        /// 党政机关链接
        /// </summary>
        public String BottomImgURL { get; set; }


        /// <summary>
        /// 二维码图片
        /// </summary>
        public String QRCodeImgPath { get; set; }

        /// <summary>
        /// 图片水印图片
        /// </summary>
        public String WaterMarkImg { get; set; }

        /// <summary>
        /// 收否有首页顶部banner
        /// </summary>
        public Boolean? HaveSlideShow { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        public String PostCode { get; set; }

        /// <summary>
        /// 验证码
        /// </summary>
        public String EmailCode { get; set; }

        /// <summary>
        /// SMTP地址
        /// </summary>
        public String EmailSMTP { get; set; }

        /// <summary>
        /// 短信账号
        /// </summary>
        public String SmsAccount { get; set; }

        /// <summary>
        /// 短信密码
        /// </summary>
        public String SmsPassword { get; set; }

        /// <summary>
        /// 短信网址
        /// </summary>
        public String SmsWebSite { get; set; }
    }

    public class SetRCompanyDTO { 
      public string Id { get; set; }
      public List<string> RIds { get; set; }
    }

}